using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_PET_NAME_QUERY_RESPONSE_DEF : DefinitionBase
    {
        
        public override bool Process()
        {
            ResetPosition();

            UInt32 petnumber = ReadUInt32();
            string name = ReadString();
            UInt32 time = ReadUInt32();
            if (ClientBuild > 7799)
            {
                byte extra = ReadByte();
            }
            Core.SetPetName(petnumber, name);

            return Validate();
        }

    }
}
